package com.jeff.android.lab.logincomponent;

import android.app.Application;

import com.jeff.android.lab.commonlib.IAppComponent;
import com.jeff.android.lab.commonlib.ServiceFactory;

/**
 * @author: duff
 * @date: 2019/2/25
 * @since: 1.0.0
 */
public class LoginApp extends Application implements IAppComponent {

    private static Application application;

    public static Application getApplication() {
        return application;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        initialize(this);
    }

    @Override
    public void initialize(Application app) {
        application = app;
        ServiceFactory.getInstance().setLoginService(new LoginService());
    }

}
